Thursday, September 15, 2022

Basic HTML Tags

 HTML (HyperText Markup Language)

    The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in web browser. It can be assisted by technologies such as "Cascading Style Sheets (CSS)" and scripting languages such as "JavaScript".


Basic HTML Tags

HTML

Syntax : <html>

Description : It tells browser that , this is html document.

Example : <html> ...</html>


Head

Syntax : <head>

Description : Supplementary information about documents , displayed in title box.

Example : <html><head> ...</head></html>


Title

Syntax : <title>

Description : Name of the HTML document in browser.

Example : <title> simple html tags </title>


Body

Syntax : <body>

Description : It contains content needed to render page.

Example : <body><p>Welcome to Web Technology</p></body>


Horizontal Rule

Syntax : <hr>

Description : It inserts horizontal rule or bar across screen . It has no end tag.

Example : <p> Welcome to Web Technology </p> <hr><p>hai</p>


Paragraph

Syntax : <p>

Description : It indicates or paragraph of text.

Example : <p> Welcome to Web Technology </p>


Header

Syntax : <h1>

Description : Head Pair creates head line includes <h1> , <h2> , <h3> , <h4> , <h5> , <h6>.

Example : <h1> Welcome to Web Technology </h1>


Break

Syntax : <br>

Description : It includes new line character. It has no ending.

Example : <p> hello </p><br><p> world</p>


Bold

Syntax : <b>

Description : Display the text in bold.

Example : <p><b> Welcome to Web Technology </b></p>


Italics

Syntax : <i>

Description : Display the text in italics.

Example : <p><i> Welcome to Web Technology </i></p>


Strong

Syntax : <strong>

Description : Display the text with some important.

Example : <p><strong> Welcome to Web Technology </strong></p>


Big

Syntax : <big>

Description : It increases the font of text.

Example : <big> Welcome to Web Technology </big>


Small

Syntax : <small>

Description : It makes the text in smaller size.

Example : <small> Welcome to Web Technology </small>


Strike

Syntax : <strike> or <s>

Description : The text within the tag is stroked out.

Example : <s> Welcome to Web Technology </s>


Image

Syntax : <img src=" ">

Description : This tag is used to load the image in website.

Example : <img src = "picture.png"> 


Blockquote

Syntax : <blockquote>

Description : It enclose large block quotation for text.

Example : <blockquoteWelcome to Web Technology </blockquote>


List

Syntax : <li>

Description : This list item will be included.

Example : <li Web Technology </li>


Unordered List

Syntax : <ul>

Description : It define list in which ordering in specific.

Example : <ul><li> Web </li><li> Technology </li></ul>


Ordered List

Syntax : <ol>

Description : It define list with numbers , Arabic , letters or roman numbers .

Example : <ol><li> Web </li><li> Technology </li></ol>


Text

Syntax : <tt>

Description : Display the text in which like text of type writer(mono spaced). 

Example : <tt Web Technology </tt>


Underline

Syntax : <u>

Description : It is used to underline the text.

Example : <u Web Technology </u>



Subscript

Syntax : <sub>

Description : Display the subscript of the text .

Example : <sub Web Technology </sub>


Superscript

Syntax : <sup>

Description : Display the superscript of the text.

Example : <sup Web Technology </sup>


Command

Syntax : <!...!>

Description : It is used to write commands.

Example : <! This is link !>


Abbreviation

Syntax : <abbr>

Description : It is used to write abbreviations which are not displayed.

Example : <abbr title ="Web Technology"> WT </abbr>


Acronyms

Syntax : <acronyms>

Description : It is used to set acronyms.

Example : <acronyms title ="Web Technology"> WT </acronyms>


Bigger

Syntax : <big>

Description : It increases the font of text.

Example : <big> Welcome to Web Technology </big>


Cite

Syntax : <cite>

Description : Defines the title of work.

Example : <p><cite> Welcome to Web Technology </cite></p>


Center

Syntax : <center>

Description : Align the text at center.

Example : <p><center> Welcome to World </center></p>


Button

Syntax : <button>

Description : Defines clickable button we can use text/button.

Example : <p><button> OK </button></p>


Column

Syntax : <col group>

Description : It is used to apply styles for column.

Example : <p><col group> Column Group </col group></p>


Delete

Syntax : <del>

Description : Define the text that has been deleted.

Example : <p> I like <del> blue </del></p>


Insert

Syntax : <insert>

Description : It mark up updates and modifications.

Example : <p> I like <ins> blue </ins></p>


Font

Syntax : <font size = " " color = " " >

Description : Defines font size and color of text.

Example : <p> <font size = "23" color = "orange"> I like <ins> blue </ins></p>


Description List and Term

Syntax : <dl> <dt>

Description : It defines a description list. It defines term/name in description list.

Example : <p> <dl> <dt>coffee</dt> <dt>Tea</dt> </dl> </p>


Mark

Syntax : <mark>

Description : It is used to define a marked list.

Example : <p><mark> Hello World </mark> </p>


Time

Syntax : <time>

Description: Define a time or date in Gregorian Calendar.

Example : <p>New Time is<time> 6:00 </time> </p>


Quotation

Syntax : <q>

Description: Define a short quotation.

Example : <p><q> Hello , World </q> </p>


Blink

Syntax : <blink>

Description: It causes element to flash slowly.

Example : <p><blink>Welcome </blink> </p>


Marquee

Syntax : <marquee>

Description : It is used to display text in rolling manner.

Example : <p><marquee>Welcome </marquee> </p>


Hyperlink

Syntax :<a href=" ">

Description : Defines a hyperlink used to link a page to another page.

Example : <p><a href ="www.gool.com"> This is link. </a> </p>


Input Field

Syntax :<input type =" " value = " ">

Description : Defines input field where user can either data within form.

Example : <p><form> <input type = "button" value = "OK"> </form> </p>


Division

Syntax:  <div>

Description : Defines a division or section in document.

Example : <p><div style = "color: blue"></div></p>


Link

Syntax:  <link>

Description : Defines a division or section in document.

Example : <p><link rel= "stylesheet" type="text/css" href="style.css"></p>


Table

Syntax:  <table>

Description :  Used to define table. It consist of <tr> , <th> , <td> , <caption>
Caption <caption> : It is used to define table elements with name.
Table Row <tr> It is used to define table row. 
Table Head <th> It is used to define table header.
Table Data <td> : Define a table cell.

Example :  <p><table><caption>Student</caption>
<tr><th> name</th><th> Roll no</th></tr><tr><td> xxx</td><td>001</td></tr></table>


How to work with Coding ?
You want to open Notepad , it is a default software in your system.
After typing the code , you want to save the file as ".html" (eg: 1.html like this you want to save your file). 
Coding
<html>
<head>
<title> Basic HTML Tags </title>
</head>
<body>
<p><h1> Welcome to Web technology </h1> </p>
<p><b> Hello </b> </p><br>
<p><i><strong> World </strong></i></p>
<hr><p><big> Hai </big></p>
<p><small> Welcome </small></p>
<p><strike> Technology </strike></p>
<p><blockquote> Welcome to Web technology </blockquote> </p>
<p><li>  Web Technology </li></p>
<p><ul><li> Web </li>
<li> Technology </li></ul></p>
<p> <ol><li> Web </li>
<li> Technology </li></ol></p>
<p><tt>  Web Technology </tt></p>
<p><u>  Web Technology </u></p>
<p>This is <sub>  Web Technology </sub></p>
<p> This is <sup>  Web Technology </sup></p>
<p><!This is link!></p>
<p><abbr title ="United States of America"> USA </abbr></p>
<p><acronyms title ="Web Technology"><big> WT </big> </acronyms></p>
<p><cite> Welcome to Web Technology </cite></p>
<p><center> Welcome to World </center></p>
<p><button> OK </button></p>
<p><col group> Column Group </col group></p>
<p> I like <del> blue </del></p>
<p> I like <ins> blue </ins></p>
<p> <font size="23" color="orange"> I like <ins> blue</ins></p>
<p> <font size="3" color="black"> <dl> <dt>coffee</dt> 
<dt>Tea</dt> </dl> </p>
<p><mark> Hello World </mark> </p>
<p>New Time is<time> 6:00 </time> </p>
<p><q> Hello , World </q> </p>
<p><blink>Welcome</blink> </p>
<p><marquee>Welcome</marquee> </p>
<p><a href ="www.gool.com"> This is link. </a> </p>
<p><form> <input type = "button" value = "SUBMIT"> </form> </p>
<p><div style = "color: blue">Hello</div></p>
<p><table style="border: 1px solid black"><caption>Student</caption>
<tr><th style="border: 1px solid black"> Name</th><th style="border: 1px solid black"> Roll no</th></tr><tr><td style="border: 1px solid black"> xxx</td><td style="border: 1px solid black">001</td></tr></table>
<p><img src = "Color_circle.jpg"> </p>
</body>
</html>

Result (Above executed code)

You can view your result in the web browser like Internet explorer , Chrome , Firefox etc.,.

HTML Tags Result
Basic HTML Tags Result


HTML Tags Result
Basic HTML Tags Result


HTML Tags Result
Basic HTML Tags Result


"Basic HTML Tags" easy for beginners to learn .  

I hope you will like and enjoy this Blog . If you have any queries you can comment in the comment box .
If you like this blog you can share with your friends.

Thank you  

For spending your valuable time to read my Blog.


Print Friendly and PDF



















No comments:

Post a Comment